import request from '@/utils/request';

export const getQiniuUploadToken = (data) => {
  return request({
    // url: '/ssystem-api/api/myqiniu/getQiniuUploadToken',
    url: '/ssystem-api/api/Store/getToken',
    method: 'post',
    data,
  });
};

export const getQiniuUploadToken2 = () => {
  return request({
    url: '/dev-api/api/myqiniu/getQiniuUploadToken',
    method: 'get',
  });
};

export const upImg = (data) => {
  return request({
    url: '/ssystem-api/api/systerm/imageUpload',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  });
};
